package com.example.demo4.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author: lin
 * @description:排班表
 * @time: 2021/7/28 18:09
 */
public class Schema {
    private Integer id;
    @DateTimeFormat(pattern="yyyy-MM-dd")
   // @JsonFormat(timezone="GMT+8",pattern="yyyy-MM-dd")
    private Date pdate;         //排班日期
    private Integer classes;    //班次
    private Integer eid;        //员工id

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Date getPdate() {
        return pdate;
    }

    public void setPdate(Date pdate) {
        this.pdate = pdate;
    }

    public Integer getClasses() {
        return classes;
    }

    public void setClasses(Integer classes) {
        this.classes = classes;
    }

    public Integer getEid() {
        return eid;
    }

    public void setEid(Integer eid) {
        this.eid = eid;
    }

    @Override
    public String toString() {
        return "schema{" +
                "id=" + id +
                ", pdate=" + pdate +
                ", classes=" + classes +
                ", eid=" + eid +
                '}';
    }
}
